export class RoleInfo {
  id: number;
  name: string;
  slug: string;
  description: string;
  level: number;
  belong: string;
  deleted_at: string;
  created_at: string;
  updated_at: string;

  constructor() {
    this.id = 0;
    this.name = '';
    this.slug = '';
    this.description = '';
    this.level = 0;
    this.belong = '';
    this.deleted_at = '';
    this.created_at = '';
    this.updated_at = '';
  }
}

export class RoleList {
  list: RoleInfo[];

  constructor() {
    this.list = new Array<RoleInfo>();
  }
}

export class AddRole {
  role_name: string;
  description: string;

  constructor() {
    this.role_name = '';
    this.description = '';
  }
}

export class EditRole {
  id: number;
  name: string;
  description: string;
  constructor() {
    this.id = 0;
    this.name = '';
    this.description = '';
  }
}
